/*
 *  Base64MemoryXferBytes.h
 *  Wilson
 *
 *  Created by Sebastian Orfino on 11/17/11.
 *  Copyright 2011 lbs3. All rights reserved.
 *
 */

#ifndef __BASE64MEMORYXFERBYTES__
#define __BASE64MEMORYXFERBYTES__

#include "PrtMemMemoryXferBytes.h"
#include "base64.h"

/** Una sublcase que lo unico que hace es devolverte los bytes codificados en base 64 */
class Base64MemoryXferBytes : public PrtMemMemoryXferBytes {
	
	
public:
	
	/** El buffer estara codificado en base 64 */
	std::string GetBuffer() const { return wilson::base64_encode(getBufferPtr(), fCountBytesStored); }
	
};


#endif //__BASE64MEMORYXFERBYTES__